package org.lc.cmd.impl;

import org.lc.cmd.CmdContextManager;
import org.lc.cmd.CmdRequest;
import org.lc.cmd.CmdSession;
import org.lc.cmd.CmdSysReq;

public interface CmdContextSetter extends CmdContextManager {
    /**
     * 设置Session
     *
     * @param session 新Session
     * @return 相同id的旧session
     */
    CmdSession putSession(CmdSession session);

    /**
     * 删除Session
     *
     * @param sessionId session id
     * @return 被删除的Session
     */
    CmdSession removeSession(String sessionId);

    CmdRequest putRequest(CmdRequest cmdRequest);

    CmdRequest removeRequest(String requestId);

    CmdSysReq putSysReq(CmdSysReq req);

    CmdSysReq removeSysReq(String sysReqId);
}
